﻿@{
    ViewBag.Title = "Admin";
}

<h2>Admin account</h2>

    <br />
  
    <br />
    <div style="font-family: 'Trebuchet MS'; font-size: 20px"><b>@Html.Raw("Welcome " + ViewBag.name + "!") </b></div>
    <html>
    <br />


    <ul>
        <li>
            <form action="/User/EditProfile" method="post">
                <input type="submit" name="Edit profile" value="Edit profile" id="EditProfile" style="padding: 0; background: none;font-size:20px" />
            </form>
            </li>
        </ul>

        <br />
    <br />

    <input type="button" value="Log out" onclick="LogOut()" />
        </html>





<script>
    //Log out
    function LogOut() {
        document.getElementById("LogOutPost").click();
    }
</script>


<form action="/User/LogOut" method="post">
    <input type="submit" name="submit" id="LogOutPost" hidden="hidden"/>
</form>
   
